//
//  UIView+Draw.h
//  TouchTV
//
//  Created by rhc on 16/8/31.
//  Copyright © 2016年 AceWei. All rights reserved.
//

#import <UIKit/UIKit.h>
//#import "BlocksKit+UIKit.h"

typedef void (^UIViewCheckEvent)(id obj);

typedef NS_ENUM(NSInteger, GradientLayDirectorType) {
    GradientLayDirectorRightType           = 0,                // 向右
    GradientLayDirectorDownType            = 1,                // 向下
};

@interface UIView (Draw)

- (void)addPortraitGradientLayer:(UIColor *)topColor bottomColor:(UIColor*)bottomColor;
- (void)removeSublayersFromSuperlayer;
- (UIView *)drawBounderWidth:(CGFloat)width Color:(UIColor *)color;
- (UIView *)drawBounderWidth:(CGFloat)width radius:(CGFloat)radius Color:(CGColorRef )color;
+ (CGFloat)commonFaceIdSafeBottom;
+ (CGFloat)commonFaceIdSafeTop;
@end

@interface UIImage (Color)

+ (UIImage *)imageWithColor:(UIColor *)color;

- (UIImage *)imageWithColor:(UIColor *)color;



@end
